package com.example.admin_beautiful.controller;

import com.example.admin_beautiful.entity.Test;
import com.example.admin_beautiful.service.ITestService;
import com.example.admin_beautiful.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author czh
 * @since 2025-03-25
 */
@Slf4j
@RestController
@Api(tags = "初始化模块")
@RequestMapping("/api/test")
public class TestController {

    @Resource
    private ITestService testService;

    @ApiOperation(value = "项目测试",notes = "仅作为项目初始化")
    @GetMapping("init")
    public Result<List> encryptEBC() {

        List<Test> list = testService.list();

        return Result.success(list);
    }

}
